package com.voice.server.service;

import com.voice.server.entity.Device;
import com.voice.server.input.DeviceQuery;
import com.voice.server.input.DeviceUpdateRequest;
import com.voice.server.output.DeviceInfo;
import com.wangjiacai.hqlQuery.service.BaseService;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface DeviceService extends BaseService {

    long getDeviceListNum(DeviceQuery deviceQuery);

    List<DeviceInfo> getDeviceList(DeviceQuery deviceQuery, Pageable pageable);

    Device getDeviceByDeviceIdAndUserId(String userId,String deviceId);

    void updateDevice(DeviceUpdateRequest deviceUpdateRequest);
}
